<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
                <h1>-- !! Confirmar Ingresos !! --</h1>
                <h:form><h:commandLink action="CrearEgresos" value="Regresar"/></h:form>
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                        
                        <h:panelGrid columns="2">
                            <h:outputLabel value="CantidadDeCajasVendidas:" for="cantidadDeCajasVendidas" />
                            <h:outputText id="cantidadDeCajasVendidas" value="#{ingresosBean.ingresos.cantidadDeCajasVendidas}" title="CantidadDeCajasVendidas" required="true" requiredMessage="The CantidadDeCajasVendidas field is required."/>
                            <h:outputLabel value="CostoPorCaja:" for="costoPorCaja" />
                            <h:outputText id="costoPorCaja" value="#{ingresosBean.ingresos.costoPorCaja}" title="CostoPorCaja" required="true" requiredMessage="The CostoPorCaja field is required."/>
                            
                        </h:panelGrid>
                        <h:panelGrid columns="2">
                            <h:commandButton  action="#{ingresoBean.procesarAccion()}" value="guardar"/>
                            <h:commandButton action="MenuPrincipal" value="cancelar" immediate="true"/>
                        </h:panelGrid>
                    </h:form>
                </f:view>

            </ui:define>

        </ui:composition>

    </body>
</html>
